.ui5-tp-clock {
	position: relative;
	width: auto;
	padding: 0.5625rem;
	outline: none;
	display: none;
}

.ui5-tp-clock-active {
	display: block;
}

.ui5-tp-clock-dial {
	position: relative;
	width: auto;
	display: block;
	border-radius: 100%;
	background-color: var(--sapLegend_WorkingBackground);
	text-align: center;
	z-index: 1;
}

.ui5-tp-clock-dial::before {
	content: attr(data-label);
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	font-family: var(--sapFontFamily);
	font-size: var(--sapFontSize);
	color: var(--sapContent_LabelColor);
	inset: 2.75rem;
	border-radius: 100%;
	z-index: 2;
}

.ui5-tp-clock-dial::after {
	content: "";
	display: block;
	padding-bottom: 100%;
}

.ui5-tp-clock-inner .ui5-tp-clock-dial::before {
	background-color: var(--sapLegend_WorkingBackground);
}

.ui5-tp-clock-cover {
	position: absolute;
	inset: -0.25rem;
	border-radius: 100%;
	z-index: 10;
	touch-action: none;
}

.ui5-tp-clock-item {
	position: absolute;
	top: 0px;
	left: 50%;
	display: inline-block;
	width: 2.75rem;
	height: 100%;
	z-index: 3;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Chrome, Edge, Opera and Firefox */
}

.ui5-tp-clock-item.ui5-tp-clock-marker {
	z-index: 4;
}

.ui5-tp-clock-dot {
	display: block;
	box-sizing: border-box;
	width: 0.25rem;
	height: 0.3125rem;
	margin: 0 auto 0.25rem auto;
	border-radius: 100%;
	background-color: var(--sapField_BorderColor);
}

.ui5-tp-clock-mid-dot {
	display: block;
	box-sizing: border-box;
	width: 0.125rem;
	height: 0.1875rem;
	margin: 0 auto 0.375rem auto;
	border-radius: 100%;
	background-color: var(--sapField_BorderColor);
}

.ui5-tp-clock-select-marker {
	box-sizing: border-box;
	width: 0.25rem;
	height: 0.5625rem;
	margin: 0 auto;
	border-radius: 100%;
	background-color: var(--sapButton_Selected_Background);
	border: 0.0625rem solid var(--sapButton_Selected_BorderColor);
}

.ui5-tp-clock-hover-marker {
	box-sizing: border-box;
	width: 0.25rem;
	height: 0.5625rem;
	margin: 0 auto;
	border-radius: 100%;
	background-color: var(--sapList_Hover_Background);
	border: 0.0625rem solid var(--sapGroup_TitleBorderColor);
}

.ui5-tp-clock-number {
	box-sizing: border-box;
	display: inline-block;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 100%;
	line-height: 2.75rem;
	text-align: center;
	vertical-align: top;
	font-family: var(--sapFontFamily);
	font-size: var(--sapFontSize);
	color: var(--sapTextColor);
	border: 0.0625rem solid transparent;
}

.ui5-tp-clock-number.ui5-tp-clock-number-hover:not(.ui5-tp-clock-selected) {
	background-color: var(--sapList_Hover_Background);
	z-index: 5;
}

.ui5-tp-clock-selected {
	color: var(--sapButton_Selected_TextColor);
	background-color: var(--sapButton_Selected_Background);
	border: 0.0625rem solid var(--sapButton_Selected_BorderColor);
}

.ui5-tp-clock-hovered {
	background-color: var(--sapList_Hover_Background);
	z-index: 5;
}

.ui5-tp-clock-pointer {
	cursor: pointer;
}

.ui5-tp-clock-items,
.ui5-tp-clock-markers {
	position: absolute;
	inset: 0;
}

/* Animations */

:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-items .ui5-tp-clock-number,
:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-items .ui5-tp-clock-mid-dot,
:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-number.ui5-tp-clock-selected,
:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-select-marker,
:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-dial::before {
	opacity: 0;
}

.ui5-tp-clock-transition .ui5-tp-clock-items .ui5-tp-clock-number {
	animation-name: fadeOutClockItems;
	animation-delay: 0.15s;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

.ui5-tp-clock-transition .ui5-tp-clock-dial::before {
	animation-name: fadeOutClockLabel;
	animation-duration: 0.35s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

.ui5-tp-clock-transition .ui5-tp-clock-number.ui5-tp-clock-selected,
.ui5-tp-clock-transition .ui5-tp-clock-select-marker {
	animation-name: fadeOutSelectedItem;
	animation-delay: 0.1s;
	animation-duration: 0.15s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

.ui5-tp-clock-transition .ui5-tp-clock-items .ui5-tp-clock-mid-dot {
	animation-name: fadeOutSelectedItem;
	animation-delay: 0.15s;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}


:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-items .ui5-tp-clock-number {
	animation-name: fadeInClockItems;
	animation-delay: 0.15s;
	animation-duration: 0.2s;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}

:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-dial::before {
	animation-name: fadeInClockLabel;
	animation-duration: 0.35s;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}

:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-number.ui5-tp-clock-selected,
:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-select-marker {
	animation-name: fadeInSelectedItem;
	animation-delay: 0.1s;
	animation-duration: 0.15s;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}

:host(:not([_skip-animation])) .ui5-tp-clock-active:not(.ui5-tp-clock-transition) .ui5-tp-clock-items .ui5-tp-clock-mid-dot {
	animation-name: fadeInSelectedItem;
	animation-delay: 0.15s;
	animation-duration: 0.2s;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}

/* @keyframes */

@keyframes fadeOutClockItems {
	from {
		opacity: 1;
		display: block;
	}
	to {
		opacity: 0;
		display: block;
	}
}

@keyframes fadeOutClockLabel {
	from {
		opacity: 1;
		display: flex;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		display: flex;
		transform: translateY(-16px);
	}
}

@keyframes fadeOutSelectedItem {
	from {
		opacity: 1;
		display: block;
	}
	to {
		opacity: 0;
		display: block;
	}
}

@keyframes fadeInClockItems {
	from {
		opacity: 0;
		display: block;
	}
	to {
		opacity: 1;
		display: block;
	}
}

@keyframes fadeInClockLabel {
	from {
		opacity: 0;
		display: flex;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		display: flex;
		transform: translateY(0px);
	}
}

@keyframes fadeInSelectedItem {
	from {
		opacity: 0;
		display: block;
	}
	50% {
		opacity: 0.5;
		display: block;
	}
	to {
		opacity: 1;
		display: block;
	}
}
